﻿<Window x:Class="FluentFTP.View.ServersView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Manage Servers" Height="300" Width="500">
    <Grid>
    	<Grid.RowDefinitions>
    		<RowDefinition Height="Auto"/>
    		<RowDefinition Height="*"/>
    	</Grid.RowDefinitions>
    	<StackPanel Margin="8" Orientation="Horizontal">
    		<Button Content="Add New ..." Margin="0,0,8,0" Command="{Binding AddServer}"/>
    		<Button Content="Edit Selected ..." Margin="0,0,8,0" Command="{Binding EditSelectedServer}"/>
    		<Button Content="Delete Selected" Margin="0,0,8,0" Command="{Binding DeleteSelectedServer}"/>
    	</StackPanel>
    	<ListView Margin="8" Grid.Row="1" ItemsSource="{Binding Servers}" SelectedItem="{Binding SelectedServer}">
    		<ListView.View>
    			<GridView>
    				<GridViewColumn Header="Name" DisplayMemberBinding="{Binding Name}" Width="150"/>
					<GridViewColumn Header="Adress" DisplayMemberBinding="{Binding Adress}" Width="150"/>
					<GridViewColumn Header="Username" DisplayMemberBinding="{Binding UserName}" Width="80"/>
					<GridViewColumn Header="Password" DisplayMemberBinding="{Binding Password}" Width="80"/>
    			</GridView>
    		</ListView.View>
    	</ListView>
        
    </Grid>
</Window>
